Optimal. Leaf size=171 \[ \frac {b e^7 n \sqrt {x}}{4 d^7}-\frac {b e^6 n x}{8 d^6}+\frac {b e^5 n x^{3/2}}{12 d^5}-\frac {b e^4 n x^2}{16 d^4}+\frac {b e^3 n x^{5/2}}{20 d^3}-\frac {b e^2 n x^3}{24 d^2}+\frac {b e n x^{7/2}}{28 d}-\frac {b e^8 n \log \left (d+\frac {e}{\sqrt {x}}\right )}{4 d^8}+\frac {1}{4} x^4 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )-\frac {b e^8 n \log (x)}{8 d^8} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 171, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {2504, 2442, 46}
\begin {gather*} \frac {1}{4} x^4 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )-\frac {b e^8 n \log \left (d+\frac {e}{\sqrt {x}}\right )}{4 d^8}-\frac {b e^8 n \log (x)}{8 d^8}+\frac {b e^7 n \sqrt {x}}{4 d^7}-\frac {b e^6 n x}{8 d^6}+\frac {b e^5 n x^{3/2}}{12 d^5}-\frac {b e^4 n x^2}{16 d^4}+\frac {b e^3 n x^{5/2}}{20 d^3}-\frac {b e^2 n x^3}{24 d^2}+\frac {b e n x^{7/2}}{28 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2442
Rule 2504
Rubi steps
\begin {align*} \int x^3 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right ) \, dx &=-\left (2 \text {Subst}\left (\int \frac {a+b \log \left (c (d+e x)^n\right )}{x^9} \, dx,x,\frac {1}{\sqrt {x}}\right )\right )\\ &=\frac {1}{4} x^4 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )-\frac {1}{4} (b e n) \text {Subst}\left (\int \frac {1}{x^8 (d+e x)} \, dx,x,\frac {1}{\sqrt {x}}\right )\\ &=\frac {1}{4} x^4 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )-\frac {1}{4} (b e n) \text {Subst}\left (\int \left (\frac {1}{d x^8}-\frac {e}{d^2 x^7}+\frac {e^2}{d^3 x^6}-\frac {e^3}{d^4 x^5}+\frac {e^4}{d^5 x^4}-\frac {e^5}{d^6 x^3}+\frac {e^6}{d^7 x^2}-\frac {e^7}{d^8 x}+\frac {e^8}{d^8 (d+e x)}\right ) \, dx,x,\frac {1}{\sqrt {x}}\right )\\ &=\frac {b e^7 n \sqrt {x}}{4 d^7}-\frac {b e^6 n x}{8 d^6}+\frac {b e^5 n x^{3/2}}{12 d^5}-\frac {b e^4 n x^2}{16 d^4}+\frac {b e^3 n x^{5/2}}{20 d^3}-\frac {b e^2 n x^3}{24 d^2}+\frac {b e n x^{7/2}}{28 d}-\frac {b e^8 n \log \left (d+\frac {e}{\sqrt {x}}\right )}{4 d^8}+\frac {1}{4} x^4 \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right )-\frac {b e^8 n \log (x)}{8 d^8}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 158, normalized size = 0.92 \begin {gather*} \frac {a x^4}{4}+\frac {1}{4} b x^4 \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-\frac {1}{4} b e n \left (-\frac {e^6 \sqrt {x}}{d^7}+\frac {e^5 x}{2 d^6}-\frac {e^4 x^{3/2}}{3 d^5}+\frac {e^3 x^2}{4 d^4}-\frac {e^2 x^{5/2}}{5 d^3}+\frac {e x^3}{6 d^2}-\frac {x^{7/2}}{7 d}+\frac {e^7 \log \left (d+\frac {e}{\sqrt {x}}\right )}{d^8}+\frac {e^7 \log (x)}{2 d^8}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int x^{3} \left (a +b \ln \left (c \left (d +\frac {e}{\sqrt {x}}\right )^{n}\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 115, normalized size = 0.67 \begin {gather*} \frac {1}{4} \, b x^{4} \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right ) + \frac {1}{4} \, a x^{4} + \frac {1}{1680} \, b n {\left (\frac {60 \, d^{6} x^{\frac {7}{2}} - 70 \, d^{5} x^{3} e + 84 \, d^{4} x^{\frac {5}{2}} e^{2} - 105 \, d^{3} x^{2} e^{3} + 140 \, d^{2} x^{\frac {3}{2}} e^{4} - 210 \, d x e^{5} + 420 \, \sqrt {x} e^{6}}{d^{7}} - \frac {420 \, e^{7} \log \left (d \sqrt {x} + e\right )}{d^{8}}\right )} e \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 176, normalized size = 1.03 \begin {gather*} \frac {420 \, b d^{8} x^{4} \log \left (c\right ) + 420 \, a d^{8} x^{4} - 70 \, b d^{6} n x^{3} e^{2} - 420 \, b d^{8} n \log \left (\sqrt {x}\right ) - 105 \, b d^{4} n x^{2} e^{4} - 210 \, b d^{2} n x e^{6} + 420 \, {\left (b d^{8} n - b n e^{8}\right )} \log \left (d \sqrt {x} + e\right ) + 420 \, {\left (b d^{8} n x^{4} - b d^{8} n\right )} \log \left (\frac {d x + \sqrt {x} e}{x}\right ) + 4 \, {\left (15 \, b d^{7} n x^{3} e + 21 \, b d^{5} n x^{2} e^{3} + 35 \, b d^{3} n x e^{5} + 105 \, b d n e^{7}\right )} \sqrt {x}}{1680 \, d^{8}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 59.31, size = 162, normalized size = 0.95 \begin {gather*} \frac {a x^{4}}{4} + b \left (\frac {e n \left (\frac {2 x^{\frac {7}{2}}}{7 d} - \frac {e x^{3}}{3 d^{2}} + \frac {2 e^{2} x^{\frac {5}{2}}}{5 d^{3}} - \frac {e^{3} x^{2}}{2 d^{4}} + \frac {2 e^{4} x^{\frac {3}{2}}}{3 d^{5}} - \frac {e^{5} x}{d^{6}} + \frac {2 e^{6} \sqrt {x}}{d^{7}} - \frac {2 e^{8} \left (\begin {cases} \frac {1}{d \sqrt {x}} & \text {for}\: e = 0 \\\frac {\log {\left (d + \frac {e}{\sqrt {x}} \right )}}{e} & \text {otherwise} \end {cases}\right )}{d^{8}} + \frac {2 e^{7} \log {\left (\frac {1}{\sqrt {x}} \right )}}{d^{8}}\right )}{8} + \frac {x^{4} \log {\left (c \left (d + \frac {e}{\sqrt {x}}\right )^{n} \right )}}{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 272 vs.
\(2 (134) = 268\).
time = 4.71, size = 272, normalized size = 1.59 \begin {gather*} \frac {1}{4} \, b x^{4} \log \left (c\right ) + \frac {1}{4} \, a x^{4} - \frac {1}{1680} \, {\left ({\left (\frac {420 \, \log \left (\frac {{\left | d \sqrt {x} + e \right |}}{\sqrt {{\left | x \right |}}}\right )}{d^{8}} - \frac {420 \, \log \left ({\left | -d + \frac {d \sqrt {x} + e}{\sqrt {x}} \right |}\right )}{d^{8}} + \frac {1089 \, d^{7} - \frac {4683 \, {\left (d \sqrt {x} + e\right )} d^{6}}{\sqrt {x}} + \frac {9639 \, {\left (d \sqrt {x} + e\right )}^{2} d^{5}}{x} - \frac {11165 \, {\left (d \sqrt {x} + e\right )}^{3} d^{4}}{x^{\frac {3}{2}}} + \frac {7490 \, {\left (d \sqrt {x} + e\right )}^{4} d^{3}}{x^{2}} - \frac {2730 \, {\left (d \sqrt {x} + e\right )}^{5} d^{2}}{x^{\frac {5}{2}}} + \frac {420 \, {\left (d \sqrt {x} + e\right )}^{6} d}{x^{3}}}{{\left (d - \frac {d \sqrt {x} + e}{\sqrt {x}}\right )}^{7} d^{8}}\right )} e^{9} - \frac {420 \, e^{9} \log \left ({\left (d e^{\left (-1\right )} - \frac {{\left (d \sqrt {x} + e\right )} e^{\left (-1\right )}}{\sqrt {x}}\right )} {\left (\frac {d}{d e^{\left (-1\right )} - \frac {{\left (d \sqrt {x} + e\right )} e^{\left (-1\right )}}{\sqrt {x}}} - e\right )}\right )}{{\left (d - \frac {d \sqrt {x} + e}{\sqrt {x}}\right )}^{8}}\right )} b n e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.98, size = 140, normalized size = 0.82 \begin {gather*} \frac {\frac {b\,d\,e^7\,n\,\sqrt {x}}{4}-\frac {b\,d^2\,e^6\,n\,x}{8}+\frac {b\,d^7\,e\,n\,x^{7/2}}{28}-\frac {b\,d^4\,e^4\,n\,x^2}{16}-\frac {b\,d^6\,e^2\,n\,x^3}{24}+\frac {b\,d^3\,e^5\,n\,x^{3/2}}{12}+\frac {b\,d^5\,e^3\,n\,x^{5/2}}{20}+\frac {b\,e^8\,n\,\mathrm {atan}\left (\frac {d\,1{}\mathrm {i}+\frac {e\,2{}\mathrm {i}}{\sqrt {x}}}{d}\right )\,1{}\mathrm {i}}{2}}{d^8}+\frac {a\,x^4}{4}+\frac {b\,x^4\,\ln \left (c\,{\left (d+\frac {e}{\sqrt {x}}\right )}^n\right )}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________